<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
				<a href="#">系统首页</a>
			</li>
			<li class="active">
				基础数据管理
			</li>
            <li class="active">
				支付方式
			</li>
		</ul><!-- .breadcrumb -->
	</div>
	<!-- Main content -->
    <div class="page-content">
    	<div class="row">
    	    <div class="page-header">
    			<h1>支付接口列表</h1>
    		</div>
            <div class=" col-md-12 col-sm-12 col-xs-12 form">
			</div>
			<div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
					<table class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th>支付接口名称</th>
								<th>客户端类别</th>
								<th>状态</th>
                                <th>类型</th>
                                <th>排序</th>
                                <th style="width: 8%;">操作</th>
							</tr>
						</thead> 
						<tbody>
						<?php if (isset($result)&&count($result)>0){
                            	foreach ($result as $val){
                            	?>
							<tr>
								<td><p><?php echo $val->name;?></p></td>
								<td><p><?php 
									if($val->client_type == 1){
										echo "PC端";
									}elseif($val->client_type == 2){
										echo "微信端";
									}elseif ($val->client_type == 3){
										echo "APP端";
									}elseif ($val->client_type == 0){
										echo "全部";
									}
								?></p></td>
								<td><p><?php 
									if($val->status == 0){
										echo "启用";
									}elseif($val->status == 1){
										echo "禁用";
									}
								?></p></td>
								<td><p><?php 
									if($val->type == 1){
										echo "线上";
									}elseif($val->type == 2){
										echo "线下";
									}
								?></p></td>
								<td><p><?php echo $val->sortnum;?></p></td>
								<td><p>
								    <a class="btn btn-sm btn-info" href="<?php echo base_url().'admin/basis_data/edit_payment/'.$val->id;?>"><i class="icon-edit"></i>编辑</a>
                                </p></td>
                                </tr>
    						<?php }
                            }else{?>
                            <tr>
                            	<td colspan="6">无数据</td>
                            </tr>
                            <?php }?>
                            </tbody>
                         </table>
                     </div><!-- /.table-responsive -->
	           </div>
            </div><!-- /.row -->
		</div><!-- /.page-content -->
	</div><!-- /.main-content -->